<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧社区管理系统 - AI功能原型</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans SC', sans-serif;
        }
        
        :root {
            --primary: #3498db;
            --secondary: #2ecc71;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --danger: #e74c3c;
            --warning: #f39c12;
            --success: #27ae60;
            --gray: #95a5a6;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            color: #333;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        header {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px 30px;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo-icon {
            background: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .logo-text h1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
        }
        
        .logo-text p {
            font-size: 0.9rem;
            color: var(--gray);
            font-weight: 500;
        }
        
        .user-controls {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .notification {
            position: relative;
            font-size: 1.3rem;
            color: var(--dark);
            cursor: pointer;
        }
        
        .badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--danger);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }
        
        .avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        .main-content {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 25px;
        }
        
        .sidebar {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .nav-item {
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
        }
        
        .nav-item:hover, .nav-item.active {
            background: rgba(52, 152, 219, 0.1);
            border-left: 4px solid var(--primary);
            color: var(--primary);
        }
        
        .nav-item i {
            font-size: 1.2rem;
            width: 25px;
        }
        
        .content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
            gap: 25px;
        }
        
        .dashboard-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .card-title {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .card-title i {
            font-size: 1.4rem;
            color: var(--primary);
        }
        
        .card-title h2 {
            font-size: 1.4rem;
            color: var(--dark);
        }
        
        .card-actions {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 8px 15px;
            border-radius: 8px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .feature-item {
            display: flex;
            gap: 15px;
            padding: 15px;
            border-radius: 10px;
            background: rgba(236, 240, 241, 0.5);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .feature-item:hover {
            background: rgba(52, 152, 219, 0.1);
            transform: translateX(5px);
        }
        
        .feature-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: white;
        }
        
        .feature-icon.security {
            background: linear-gradient(45deg, #e74c3c, #f39c12);
        }
        
        .feature-icon.service {
            background: linear-gradient(45deg, #9b59b6, #3498db);
        }
        
        .feature-icon.parking {
            background: linear-gradient(45deg, #1abc9c, #2ecc71);
        }
        
        .feature-icon.energy {
            background: linear-gradient(45deg, #f1c40f, #e67e22);
        }
        
        .feature-content {
            flex: 1;
        }
        
        .feature-content h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: var(--dark);
        }
        
        .feature-content p {
            font-size: 0.9rem;
            color: var(--gray);
            line-height: 1.5;
        }
        
        .status-indicator {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .status-indicator.active {
            color: var(--success);
        }
        
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        
        .status-dot.active {
            background: var(--success);
        }
        
        .camera-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .camera-card {
            background: #f8f9fa;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }
        
        .camera-header {
            padding: 12px 15px;
            background: var(--dark);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .camera-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
        }
        
        .camera-preview {
            height: 150px;
            background: linear-gradient(45deg, #7f7fd5, #86a8e7, #91eae4);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .alert-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--danger);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .camera-footer {
            padding: 12px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 20px;
        }
        
        .stat-card {
            background: linear-gradient(135deg, var(--primary), #86a8e7);
            border-radius: 10px;
            padding: 20px;
            color: white;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .stat-card.warning {
            background: linear-gradient(135deg, var(--warning), #f6e58d);
        }
        
        .stat-card.danger {
            background: linear-gradient(135deg, var(--danger), #ff7979);
        }
        
        .stat-card.success {
            background: linear-gradient(135deg, var(--success), #6ab04c);
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: 700;
        }
        
        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .chat-container {
            display: flex;
            flex-direction: column;
            height: 400px;
            background: #f8f9fa;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .chat-header {
            background: var(--dark);
            color: white;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .message {
            max-width: 80%;
            padding: 12px 18px;
            border-radius: 18px;
            position: relative;
        }
        
        .message.bot {
            background: #e3f2fd;
            align-self: flex-start;
            border-bottom-left-radius: 5px;
        }
        
        .message.user {
            background: #dcf8c6;
            align-self: flex-end;
            border-bottom-right-radius: 5px;
        }
        
        .chat-input {
            display: flex;
            padding: 15px;
            background: white;
            border-top: 1px solid #eee;
        }
        
        .chat-input input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 30px;
            outline: none;
        }
        
        .chat-input button {
            background: var(--primary);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            margin-left: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .parking-map {
            height: 300px;
            background: #e0f7fa;
            border-radius: 10px;
            margin-top: 20px;
            position: relative;
            overflow: hidden;
        }
        
        .parking-spot {
            position: absolute;
            width: 80px;
            height: 40px;
            background: var(--success);
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .parking-spot.occupied {
            background: var(--danger);
        }
        
        .parking-spot.reserved {
            background: var(--warning);
        }
        
        .parking-spot:hover {
            transform: scale(1.05);
        }
        
        .spot-1 { top: 30px; left: 30px; }
        .spot-2 { top: 30px; left: 140px; }
        .spot-3 { top: 30px; left: 250px; }
        .spot-4 { top: 100px; left: 30px; }
        .spot-5 { top: 100px; left: 140px; }
        .spot-6 { top: 100px; left: 250px; }
        .spot-7 { top: 170px; left: 30px; }
        .spot-8 { top: 170px; left: 140px; }
        .spot-9 { top: 170px; left: 250px; }
        
        .legend {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            justify-content: center;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }
        
        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
        }
        
        .legend-color.free {
            background: var(--success);
        }
        
        .legend-color.occupied {
            background: var(--danger);
        }
        
        .legend-color.reserved {
            background: var(--warning);
        }
        
        .energy-chart {
            height: 200px;
            margin-top: 20px;
            display: flex;
            align-items: flex-end;
            gap: 15px;
            padding: 0 20px;
        }
        
        .chart-bar {
            flex: 1;
            background: linear-gradient(to top, var(--primary), #86a8e7);
            border-radius: 5px 5px 0 0;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
        }
        
        .chart-bar-label {
            position: absolute;
            bottom: -25px;
            font-size: 0.8rem;
            color: var(--dark);
        }
        
        .chart-value {
            color: white;
            padding: 5px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .device-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }
        
        .device-item {
            display: flex;
            align-items: center;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            gap: 15px;
        }
        
        .device-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.4rem;
        }
        
        .device-info {
            flex: 1;
        }
        
        .device-info h3 {
            font-size: 1rem;
            margin-bottom: 5px;
        }
        
        .device-status {
            font-size: 0.85rem;
            color: var(--success);
            font-weight: 500;
        }
        
        .device-status.warning {
            color: var(--warning);
        }
        
        .device-status.danger {
            color: var(--danger);
        }
        
        .progress-bar {
            height: 8px;
            width: 100%;
            background: #e0e0e0;
            border-radius: 4px;
            margin-top: 5px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: var(--success);
            border-radius: 4px;
        }
        
        .progress.warning {
            background: var(--warning);
        }
        
        .progress.danger {
            background: var(--danger);
        }
        
        footer {
            margin-top: 40px;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            padding: 20px;
        }
        
        @media (max-width: 1100px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                display: none;
            }
            
            .content {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="logo">
                <div class="logo-icon">
                    <i class="fas fa-brain"></i>
                </div>
                <div class="logo-text">
                    <h1>智慧社区管理系统</h1>
                    <p>AI赋能 · 智能管理 · 安全便捷</p>
                </div>
            </div>
            <div class="user-controls">
                <div class="notification">
                    <i class="fas fa-bell"></i>
                    <div class="badge">3</div>
                </div>
                <div class="user-profile">
                    <div class="avatar">管</div>
                    <div>
                        <div>管理员</div>
                        <div style="font-size: 0.8rem; color: var(--gray);">物业中心</div>
                    </div>
                </div>
            </div>
        </header>
        
        <div class="main-content">
            <div class="sidebar">
                <div class="nav-item active">
                    <i class="fas fa-home"></i>
                    <span>控制面板</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-shield-alt"></i>
                    <span>智能安防</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-robot"></i>
                    <span>AI客服</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-car"></i>
                    <span>停车管理</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-bolt"></i>
                    <span>能源管理</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-cog"></i>
                    <span>系统设置</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-chart-line"></i>
                    <span>数据统计</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-users"></i>
                    <span>业主管理</span>
                </div>
            </div>
            
            <div class="content">
                <!-- AI智能安防监控 -->
                <div class="dashboard-card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-shield-alt"></i>
                            <h2>AI智能安防监控</h2>
                        </div>
                        <div class="card-actions">
                            <button class="btn btn-outline">
                                <i class="fas fa-cog"></i> 设置
                            </button>
                            <button class="btn btn-primary">
                                <i class="fas fa-plus"></i> 添加设备
                            </button>
                        </div>
                    </div>
                    
                    <div class="camera-grid">
                        <div class="camera-card">
                            <div class="camera-header">
                                <div>1号楼大厅</div>
                                <div class="camera-status">
                                    <div class="status-dot active"></div>
                                    <span>运行中</span>
                                </div>
                            </div>
                            <div class="camera-preview">
                                人脸识别门禁
                                <div class="alert-badge">识别中</div>
                            </div>
                            <div class="camera-footer">
                                <div>今日通行: 142人</div>
                                <div><i class="fas fa-history"></i> 实时</div>
                            </div>
                        </div>
                        
                        <div class="camera-card">
                            <div class="camera-header">
                                <div>儿童游乐区</div>
                                <div class="camera-status">
                                    <div class="status-dot active"></div>
                                    <span>运行中</span>
                                </div>
                            </div>
                            <div class="camera-preview">
                                行为分析监控
                                <div class="alert-badge">异常检测</div>
                            </div>
                            <div class="camera-footer">
                                <div>今日告警: 1次</div>
                                <div><i class="fas fa-history"></i> 实时</div>
                            </div>
                        </div>
                        
                        <div class="camera-card">
                            <div class="camera-header">
                                <div>3号楼电梯</div>
                                <div class="camera-status">
                                    <div class="status-dot active"></div>
                                    <span>运行中</span>
                                </div>
                            </div>
                            <div class="camera-preview">
                                电动车识别系统
                                <div class="alert-badge">已阻止</div>
                            </div>
                            <div class="camera-footer">
                                <div>今日阻止: 3次</div>
                                <div><i class="fas fa-history"></i> 实时</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="stats-grid">
                        <div class="stat-card">
                            <div class="stat-value">98.7%</div>
                            <div class="stat-label">人脸识别准确率</div>
                        </div>
                        <div class="stat-card warning">
                            <div class="stat-value">12</div>
                            <div class="stat-label">今日异常行为</div>
                        </div>
                        <div class="stat-card danger">
                            <div class="stat-value">3</div>
                            <div class="stat-label">黑名单预警</div>
                        </div>
                        <div class="stat-card success">
                            <div class="stat-value">100%</div>
                            <div class="stat-label">设备在线率</div>
                        </div>
                    </div>
                </div>
                
                <!-- AI物业客服机器人 -->
                <div class="dashboard-card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-robot"></i>
                            <h2>AI物业客服机器人</h2>
                        </div>
                        <div class="card-actions">
                            <button class="btn btn-outline">
                                <i class="fas fa-history"></i> 历史记录
                            </button>
                        </div>
                    </div>
                    
                    <div class="chat-container">
                        <div class="chat-header">
                            <i class="fas fa-robot"></i>
                            <div>AI物业助手 - 24小时在线服务</div>
                        </div>
                        <div class="chat-messages">
                            <div class="message bot">
                                您好！我是智慧社区AI助手，请问有什么可以帮您？我可以处理报修、缴费、投诉等业务。
                            </div>
                            <div class="message user">
                                我家卫生间水管漏水了，需要报修。
                            </div>
                            <div class="message bot">
                                好的，正在为您创建报修工单...
                                <br><br>
                                ✅ 工单类型: 水管维修
                                <br>
                                📍 位置: 8号楼2单元1203室
                                <br>
                                👨‍🔧 分配维修人员: 张师傅
                                <br>
                                ⏱ 预计到达时间: 30分钟内
                            </div>
                            <div class="message bot">
                                需要我帮您联系张师傅说明具体情况吗？
                            </div>
                        </div>
                        <div class="chat-input">
                            <input type="text" placeholder="输入您的问题...">
                            <button><i class="fas fa-paper-plane"></i></button>
                        </div>
                    </div>
                    
                    <div class="stats-grid">
                        <div class="stat-card">
                            <div class="stat-value">97.3%</div>
                            <div class="stat-label">问题解决率</div>
                        </div>
                        <div class="stat-card success">
                            <div class="stat-value">24/7</div>
                            <div class="stat-label">全天候服务</div>
                        </div>
                        <div class="stat-card">
                            <div class="stat-value">8</div>
                            <div class="stat-label">支持语言</div>
                        </div>
                        <div class="stat-card warning">
                            <div class="stat-value">2.1s</div>
                            <div class="stat-label">平均响应时间</div>
                        </div>
                    </div>
                </div>
                
                <!-- 智能停车管理 -->
                <div class="dashboard-card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-car"></i>
                            <h2>智能停车管理</h2>
                        </div>
                        <div class="card-actions">
                            <button class="btn btn-outline">
                                <i class="fas fa-sync"></i> 刷新
                            </button>
                        </div>
                    </div>
                    
                    <div class="feature-item">
                        <div class="feature-icon parking">
                            <i class="fas fa-car"></i>
                        </div>
                        <div class="feature-content">
                            <h3>车牌识别系统</h3>
                            <p>自动识别业主车辆，无感通行；访客车辆自动登记并分配临时车位</p>
                        </div>
                        <div class="status-indicator active">
                            <div class="status-dot active"></div>
                            <span>在线</span>
                        </div>
                    </div>
                    
                    <div class="parking-map">
                        <div class="parking-spot spot-1">A01</div>
                        <div class="parking-spot spot-2 occupied">A02</div>
                        <div class="parking-spot spot-3">A03</div>
                        <div class="parking-spot spot-4">A04</div>
                        <div class="parking-spot spot-5 occupied">A05</div>
                        <div class="parking-spot spot-6 reserved">A06</div>
                        <div class="parking-spot spot-7">A07</div>
                        <div class="parking-spot spot-8 occupied">A08</div>
                        <div class="parking-spot spot-9">A09</div>
                    </div>
                    
                    <div class="legend">
                        <div class="legend-item">
                            <div class="legend-color free"></div>
                            <span>空闲车位</span>
                        </div>
                        <div class="legend-item">
                            <div class="legend-color occupied"></div>
                            <span>已占用</span>
                        </div>
                        <div class="legend-item">
                            <div class="legend-color reserved"></div>
                            <span>已预约</span>
                        </div>
                    </div>
                    
                    <div class="stats-grid">
                        <div class="stat-card">
                            <div class="stat-value">63</div>
                            <div class="stat-label">总车位数量</div>
                        </div>
                        <div class="stat-card success">
                            <div class="stat-value">24</div>
                            <div class="stat-label">空闲车位</div>
                        </div>
                        <div class="stat-card warning">
                            <div class="stat-value">5</div>
                            <div class="stat-label">访客车位</div>
                        </div>
                        <div class="stat-card danger">
                            <div class="stat-value">3</div>
                            <div class="stat-label">违规停车</div>
                        </div>
                    </div>
                </div>
                
                <!-- AI能源与设备管理 -->
                <div class="dashboard-card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-bolt"></i>
                            <h2>AI能源与设备管理</h2>
                        </div>
                        <div class="card-actions">
                            <button class="btn btn-outline">
                                <i class="fas fa-chart-bar"></i> 详细数据
                            </button>
                        </div>
                    </div>
                    
                    <div class="feature-item">
                        <div class="feature-icon energy">
                            <i class="fas fa-lightbulb"></i>
                        </div>
                        <div class="feature-content">
                            <h3>能耗优化系统</h3>
                            <p>实时分析社区能耗，自动调节公共照明和空调系统，节能高达30%</p>
                        </div>
                        <div class="status-indicator active">
                            <div class="status-dot active"></div>
                            <span>运行中</span>
                        </div>
                    </div>
                    
                    <div class="energy-chart">
                        <div class="chart-bar" style="height: 70%;">
                            <div class="chart-value">72.3kWh</div>
                            <div class="chart-bar-label">照明</div>
                        </div>
                        <div class="chart-bar" style="height: 85%;">
                            <div class="chart-value">88.1kWh</div>
                            <div class="chart-bar-label">电梯</div>
                        </div>
                        <div class="chart-bar" style="height: 45%;">
                            <div class="chart-value">46.7kWh</div>
                            <div class="chart-bar-label">水泵</div>
                        </div>
                        <div class="chart-bar" style="height: 60%;">
                            <div class="chart-value">62.4kWh</div>
                            <div class="chart-bar-label">门禁</div>
                        </div>
                        <div class="chart-bar" style="height: 30%;">
                            <div class="chart-value">32.9kWh</div>
                            <div class="chart-bar-label">监控</div>
                        </div>
                    </div>
                    
                    <div class="device-list">
                        <div class="device-item">
                            <div class="device-icon">
                                <i class="fas fa-tint"></i>
                            </div>
                            <div class="device-info">
                                <h3>二次供水系统</h3>
                                <div class="device-status">运行正常</div>
                                <div class="progress-bar">
                                    <div class="progress" style="width: 65%;"></div>
                                </div>
                            </div>
                            <div>65%</div>
                        </div>
                        
                        <div class="device-item">
                            <div class="device-icon">
                                <i class="fas fa-wind"></i>
                            </div>
                            <div class="device-info">
                                <h3>中央空调系统</h3>
                                <div class="device-status warning">需要维护</div>
                                <div class="progress-bar">
                                    <div class="progress warning" style="width: 82%;"></div>
                                </div>
                            </div>
                            <div>82%</div>
                        </div>
                        
                        <div class="device-item">
                            <div class="device-icon">
                                <i class="fas fa-fire"></i>
                            </div>
                            <div class="device-info">
                                <h3>消防系统</h3>
                                <div class="device-status danger">立即检修</div>
                                <div class="progress-bar">
                                    <div class="progress danger" style="width: 93%;"></div>
                                </div>
                            </div>
                            <div>93%</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <footer>
            <p>智慧社区管理系统 v2.0 | © 2023 智能科技 | 数据每5分钟更新一次</p>
            <p>AI赋能社区管理，创造安全便捷的智慧生活环境</p>
        </footer>
    </div>

    <script>
        // 简单的交互效果
        document.querySelectorAll('.parking-spot').forEach(spot => {
            spot.addEventListener('click', function() {
                const status = this.classList.contains('occupied') ? '占用' : 
                              this.classList.contains('reserved') ? '预约' : '空闲';
                alert(`车位 ${this.textContent} - 状态: ${status}`);
            });
        });
        
        document.querySelectorAll('.feature-item').forEach(item => {
            item.addEventListener('click', function() {
                const title = this.querySelector('h3').textContent;
                alert(`进入${title}详情页面`);
            });
        });
        
        document.querySelector('.chat-input button').addEventListener('click', function() {
            const input = document.querySelector('.chat-input input');
            if(input.value.trim() !== '') {
                const messages = document.querySelector('.chat-messages');
                const newMessage = document.createElement('div');
                newMessage.className = 'message user';
                newMessage.textContent = input.value;
                messages.appendChild(newMessage);
                input.value = '';
                
                // 滚动到底部
                messages.scrollTop = messages.scrollHeight;
                
                // 模拟机器人回复
                setTimeout(() => {
                    const botMessage = document.createElement('div');
                    botMessage.className = 'message bot';
                    botMessage.textContent = '已收到您的反馈，我们将尽快处理！';
                    messages.appendChild(botMessage);
                    messages.scrollTop = messages.scrollHeight;
                }, 1000);
            }
        });
    </script>
</body>
</html>